const state = () => ({
  navIndex: 0,
})

// const actions = {
//   async getAllProducts ({ commit }) {
//     const products = await shop.getProducts()
//     commit('setProducts', products)
//   }
// }

const mutations = {
  setNavIndex (state, index) {
    state.navIndex = index
  },
}

export default {
  namespaced: true,
  state,
  // actions,
  mutations
}
